<?php

namespace App\Models;

use App\Library\Models\Entity;
use App\Library\Traits\Orm\PaymentOrmTrait;

class PaymentModel extends Entity
{
    use PaymentOrmTrait;

    protected $table = 'payment';
    
    protected $casts = ['result' => 'json', 'find' => 'json', 'refund' => 'json'];

    protected $fillable = [
        'id',
        'serial_number',
        'object_type',
        'object_id',
        'payment_related_id',
        'status_refund',
        'amount',
        'payment_method_id',
        'initiator_user_id',
        'receive_user_id',
        'initiator_user_account_id',
        'receive_user_account_id',
        'out_trade_no',
        'result',
        'find',
        'refund',
        'remark',
        'pay_at',
        'created_at',
        'updated_at'
    ];
}
